package com.example.questionnaire.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.common.utils.PageUtils;
import com.example.common.utils.Query;
import com.example.questionnaire.constant.ExpenseConstants;
import com.example.questionnaire.dao.AnswererTeamDao;
import com.example.questionnaire.dao.PieDao;
import com.example.questionnaire.dao.TeamDao;
import com.example.questionnaire.dao.UserTeamDao;
import com.example.questionnaire.entity.AnswererTeamEntity;
import com.example.questionnaire.entity.PieEntity;
import com.example.questionnaire.entity.TeamEntity;
import com.example.questionnaire.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.Map;
import java.util.function.Function;

import static com.example.questionnaire.constant.TeamConstants.answerer;


@Service("pieService")
public class PieServiceImpl extends ServiceImpl<PieDao, PieEntity> implements PieService {
    @Autowired
    PieDao pieDao;


    @Override
    public int addPieData(PieEntity pieEntity) {
        return pieDao.insert(pieEntity);
    }

    @Override
    public PieEntity queryPieData(Integer questionnaireId, Integer problemId) {
        return pieDao.queryPieData(questionnaireId,problemId);
    }

    @Override
    public void updatePieData(PieEntity pieEntity) {
        pieDao.updatePieData(pieEntity);
    }

    @Override
    public boolean saveBatch(Collection<PieEntity> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdateBatch(Collection<PieEntity> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean updateBatchById(Collection<PieEntity> entityList, int batchSize) {
        return false;
    }

    @Override
    public boolean saveOrUpdate(PieEntity entity) {
        return false;
    }

    @Override
    public PieEntity getOne(Wrapper<PieEntity> queryWrapper, boolean throwEx) {
        return null;
    }

    @Override
    public Map<String, Object> getMap(Wrapper<PieEntity> queryWrapper) {
        return null;
    }

    @Override
    public <V> V getObj(Wrapper<PieEntity> queryWrapper, Function<? super Object, V> mapper) {
        return null;
    }
}